extends Resource

class_name SelfDisciplineData


# 是否破戒
@export var has_been_breaked : bool
# 是否吃甜食
@export var whether_having_snacks : bool
# 是否按时前往图书馆
@export var whether_library : bool
# 时间戳
var timestamp : Dictionary
# 今日自律总得分
var total_score : int = 100

func get_time()->Dictionary:
	var current_time = Time.get_date_dict_from_system(false) 
	self.timestamp = current_time
	return current_time
	
func count_score()->void:
	if has_been_breaked:
		total_score -= 20
	if whether_having_snacks:
		total_score -= 20
	if not whether_library :
		total_score -= 10
